<template>
	<view class=""></view>
</template>

<script>
// const citySelector = requirePlugin('citySelector');
// #ifdef MP-WEIXIN
const citySelector = requirePlugin('citySelector');
// #endif
	export default {
		data() {
			return {
			};
		},
		onLoad() {

		},
		onShow() {

		  },
		  onUnload() {
		    // 页面卸载时设置插件选点数据为null，防止再次进入页面，geLocation返回的是上次选点结果
		    citySelector.clearCity();
		  },
		methods: {
			    mapChooseLocation() {
			      const key = 'FPPBZ-FQXRT-LZCX2-VI72S-GWQUJ-D3BCI' //使用在腾讯位置服务申请的key
			      const referer = '测试' //调用插件的app的名称，这个根据自己项目来写
			      const hotCitys  = '长沙'
			      wx.navigateTo({
			        url:
			          'plugin://citySelector/index?key=' +
			          key +
			          '&referer=' +
			          referer +
			          '&location=' +
			          location +
			          '&hotCitys=' +
			          hotCitys,
			      })
			    },
			
		},
	}
</script>

<style lang="scss">
	.hhhh {
		width: 150rpx;
		height: 65rpx;
		background-color: chartreuse;
	}
</style>
